package com.woniu.command.proscheduingcommand;

import com.woniu.command.Command;
import com.woniu.command.handle.ProSchedulingCommandHandle;
import com.woniu.uitl.ApplicationContextHolder;

public class DeleteProScheduingCommand implements Command<Long,String> {

    private ProSchedulingCommandHandle handle;

    public DeleteProScheduingCommand() {
        this.handle = ApplicationContextHolder.getApplicationContext().getBean(ProSchedulingCommandHandle.class);
    }

    @Override
    public String excute(Long aLong) {
        String msg = handle.delete(aLong);
        return msg;
    }
}
